package com.graduationdesign.zengyan.graduationdesignapp.ui.activities;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;

import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.model.resultModel.EventResultModel;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.event.EventDetailActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.login.LoginActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.nav.NavActiviity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.orgs.OrgAllPersonActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.profile.EditProfileActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.profile.ProfileActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.activities.search.SearchActivity;
import com.graduationdesign.zengyan.graduationdesignapp.ui.base.IntentKey;

/**
 * Created by ZengYan on 2018/4/20.
 *
 * @desc :
 */
public class UiInjection {

    public static Intent provideLogin(Context packageContext) {
       return new Intent(packageContext, LoginActivity.class);
    }

    public static Intent provideNav(Context context) {
        return new Intent(context, NavActiviity.class);
    }

    public static Intent provideOrgPersons(@NonNull Context context , @NonNull int org_id) {
        Intent intent = new Intent(context, OrgAllPersonActivity.class);
        intent.putExtra(IntentKey.ORG_ID, org_id);
        return intent;
    }

    public static Intent provideProfile(@NonNull Context context , @NonNull String stunum) {
        Intent intent = new Intent(context, ProfileActivity.class);
        intent.putExtra(IntentKey.STIUNUM, stunum);
        return intent;
    }

    public static Intent provideSearchPeople(@NonNull Context context ) {
        Intent intent = new Intent(context, SearchActivity.class);
        return intent;
    }

    public static Intent provideEventDetail(@NonNull Context context ,@NonNull EventResultModel id) {
        Intent intent = new Intent(context, EventDetailActivity.class);
        intent.putExtra(IntentKey.Event, id);
        return intent;
    }

    public static Intent provideProfileEdit(@NonNull Context context ) {
        Intent intent = new Intent(context, EditProfileActivity.class);
        return intent;
    }




}
